/**
 * Copyright (C), 2015-2019, 静修教育咨询有限公司
 * FileName: RewardType
 * Author:  SAGIRI
 * Date:     2019/7/22 0022 14:53
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.ruimei.entitys.enums;


/**
 * 〈概要〉<br> 
 * 〈〉
 *
 * @author SAGIRI
 * @create 2019/7/22 0022
 * @since 1.0.0
 */
public enum RewardType {
    PUNISH("惩罚"),
    PRIZE("奖励");

    private String name;

    private RewardType(String name){
        this.name  = name ;
    }

    public RewardType matching(String name){
        switch (name){
            case "惩罚":
                return RewardType.PUNISH;
            case "奖励":
                return RewardType.PRIZE;

        }
        return  RewardType.PUNISH;
    }
}
